Repository navigation
TS1: TanStack Start on Workers - #2
Merged
Merged
Conversation
vercel/vercel examples/tanstack-start (main 84878e5, Apache-2.0) in apps/web: TanStack Start 1.133 → 1.169 (Router 1.170) with React 19, Tailwind CSS 4 and lucide-react, Vite 8, built by Cloudflare's Vite plugin (@cloudflare/vite-plugin 1.66.0, TanStack Start's documented Cloudflare target) in place of Nitro into one Worker (dist/server) with Static Assets (dist/client). wrangler.jsonc describes the built Worker for the deploy's `wrangler deploy --config wrangler.jsonc` (main dist/server/index.js, no_bundle with the plugin's ESModule rule, assets dist/client), and vite.config.ts names the source entry the plugin builds; a dry-run deploy of it and of the plugin's own dist/server/wrangler.json upload the same modules. The server-functions demo keeps the todos in the visitor's own httpOnly cookie (src/data/todos.ts: JSON, capped at 50 × 100 characters and 3,800 encoded bytes, a todo that would not fit refused with its reason) instead of todos.json through node:fs, which a Worker has no disk for; 1.169 renames .inputValidator to .validator. The site's name is one seam (SITE_NAME in src/lib/site.ts, every page's <title>). The template's own biome.json is the lint (biome lint, Biome 2.2.4 as its schema names) and the code is made to pass it (button types, keys, a hook's dependencies); vite-tsconfig-paths gives way to Vite 8's own tsconfig paths; unused packages are dropped. The licence ships as apps/web/LICENSE, and apps/web/README.md lists every file changed. component.yaml (cloudflare-workers-assets-turbo) smokes the home page's nav, the API route's JSON and a 404. Tests (vitest): the name seam and the todo store. typecheck, lint, test and build are green; wrangler dev serves every route, the todos added through the POST server function and read back with the visitor's cookie. Co-Authored-By: Claude <noreply@anthropic.com> Orun-Task: TS-2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
vercel/vercel examples/tanstack-start (main 84878e5, Apache-2.0) in apps/web: TanStack Start 1.133 → 1.169 (Router 1.170) with React 19, Tailwind CSS 4 and lucide-react, Vite 8, built by Cloudflare's Vite plugin (@cloudflare/vite-plugin 1.66.0, TanStack Start's documented Cloudflare target) in place of Nitro into one Worker (dist/server) with Static Assets (dist/client). wrangler.jsonc describes the built Worker for the deploy's
wrangler deploy --config wrangler.jsonc(main dist/server/index.js, no_bundle with the plugin's ESModule rule, assets dist/client), and vite.config.ts names the source entry the plugin builds; a dry-run deploy of it and of the plugin's own dist/server/wrangler.json upload the same modules. The server-functions demo keeps the todos in the visitor's own httpOnly cookie (src/data/todos.ts: JSON, capped at 50 × 100 characters and 3,800 encoded bytes, a todo that would not fit refused with its reason) instead of todos.json through node:fs, which a Worker has no disk for; 1.169 renames .inputValidator to .validator. The site's name is one seam (SITE_NAME in src/lib/site.ts, every page's <title>). The template's own biome.json is the lint (biome lint, Biome 2.2.4 as its schema names) and the code is made to pass it (button types, keys, a hook's dependencies); vite-tsconfig-paths gives way to Vite 8's own tsconfig paths; unused packages are dropped. The licence ships as apps/web/LICENSE, and apps/web/README.md lists every file changed. component.yaml (cloudflare-workers-assets-turbo) smokes the home page's nav, the API route's JSON and a 404. Tests (vitest): the name seam and the todo store. typecheck, lint, test and build are green; wrangler dev serves every route, the todos added through the POST server function and read back with the visitor's cookie.🤖 Generated with Claude Code